from requests_html import HTMLSession
session = HTMLSession()
site = session.get('https://www.bilibili.com/bangumi/media/md1575/?spm_id_from=666.25.b_6d656469615f6d6f64756c65.2')

tags = site.html.find('span.media-tag')
tag = [x.text for x in tags]
print(tag)

titles = site.html.find('span.media-info-title-t')
title = [x.text for x in titles]
print(title)


datas = site.html.find('div.media-info-datas')
data_list = datas[0].find('span')
dats = [x.text for x in data_list]
print(dats)
total_play = dats[0].split(' ')[1]
total_fan = dats[2].split(' ')[1]
total_screen_comment = dats[4].split(' ')[1]
print(total_play)
print(total_fan)
print(total_screen_comment)


scores = site.html.find('div.media-info-score-content')
score = [x.text for x in scores]
if len(score) == 0:
    score.append('暂无评分')
score = score[0]
print(score)

time_datas = site.html.find('div.media-info-time')
time_list = time_datas[0].find('span')
tims = [x.text for x in time_list]
print(tims[0])
print(tims[1])
